import Image from 'next/image'
import image from "public/image.png"

export default async function Page({
    params,
}: {
    params: Promise<{ slug: string }>
}) {
    const { slug } = await params
    if(slug === "image"){
        return (
            <Image src={image} alt={"image"} />
        )
    }
    return <div>My Post: {slug}</div>
}